package io.gitee.tianhaoran.chat.boot.starter.sdk;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import io.gitee.tianhaoran.chat.sdk.api.AbstractChatBlender;
import io.gitee.tianhaoran.chat.sdk.api.ChatConfig;

import static io.gitee.tianhaoran.chat.sdk.api.def.Const.Chat_Prefix;

/**
 * <p>
 * 作者：沈自在
 **/
@Configuration
public class ChatAutoConfiguration {

    /**
     * 主配置
     */
    @Bean
    @ConfigurationProperties(prefix = Chat_Prefix)
    public ChatConfig chatConfig() {
        return AbstractChatBlender.getChatConfig();
    }
}
